package com.bjpower.models.request;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class ProductAddRequest {
    @NotNull(message = "产品编码不能为空")
    @Size(min = 6, max = 20, message = "产品编码长度在1-20之间")
    private String code;


    @NotNull(message = "产品名字不能为空")
    @Size(min = 6, max = 20, message = "产品名字长度在6-20之间")
    private String name;
}
